package org.util.string;

public class NewsPage {

	/**
	 * 获得分页的数量
	 * 
	 * @param contents
	 * @return
	 */
	public static int getPageNum(String contents) {
		String[] result = contents.split("\\[-page-\\]");
		return result.length;
	}
}
